package com.growthsee.rider.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.growthsee.rider.enumeration.RegisterEnum;
import com.growthsee.rider.enumeration.StatusEnum;
import com.growthsee.rider.enumeration.YesNoEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author csy
 * @since 2021-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RiderInfo对象", description="")
public class RiderInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "openId")
    private String openId;
    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "性别")
    private Integer sex;
    @ApiModelProperty(value = "身份证号码")
    private String idCard;
    @ApiModelProperty(value = "骑手类型（0.专送、1.众包）")
    private Integer riderType;

    @ApiModelProperty(value = "平台公司id")
    private String platformCompanyId;
    @ApiModelProperty(value = "代理商公司id")
    private String agentCompanyId;
    @ApiModelProperty(value = "骑手电话")
    private String mobilePhone;
    @ApiModelProperty(value = "骑手名族")
    private String national;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "车牌号")
    private String licensePlateNumber;
    @ApiModelProperty(value = "省")
    private String province;
    @ApiModelProperty(value = "市")
    private String city;
    @ApiModelProperty(value = "头像地址")
    private String headImgUrl;
    @ApiModelProperty(value = "交管审核状态{0待审核，1通过；2未通过}")
    private Integer auditStatus;
    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    @ApiModelProperty(value = "用户状态{0.正常，1.拉黑}")
    private Integer status= StatusEnum.ENABLE.getValue();
    @ApiModelProperty(value = "注册状态{0.未注册，1.已注册}")
    private int registerStatus= RegisterEnum.NOREGISTER.getValue();

    @ApiModelProperty(value = "")
    private int deleted;
    @ApiModelProperty(value = "累计计分")
    private BigDecimal cumulativeScore=new BigDecimal(0);
    @ApiModelProperty(value = "是否通过入门考试{1.通过；0没有通过}")
    private Integer passed= YesNoEnum.NO.getValue();
    @ApiModelProperty(value = "当前季度学习消分")
    private BigDecimal currentQuarterRemoveScore=new BigDecimal(0);

}
